/*
********************************************************************************
* Copyright (C) 2021, xiang.D <dx_65535@163.com>.
* All right reserved.
*
* File Name   : log.h
* Author      :
* Version     : V1.0
* Description :
* Journal     : 2021-12-17 version v1.0
* Brief       : Blog: https://blog.csdn.net/qq_38750572?spm=1001.2014.3001.5343
* Others      :
                Compile command: make
********************************************************************************
*/
#ifndef __LOG_H__
#define __LOG_H__

#include "log_base.h"

// 将log写入文本中
class CLog : public CLogBase
{
public:
    CLog()
    {}

    ~CLog()
    {}

    static CLog *GetInstance();

    int WriteLog(const char *tag, const char *msg);

    int SetLogLevel(int level);

private:
    int mLevel;
};

#endif
